package com.enbatis.mybatisplugs.generate;

import com.enbatis.mybatisplugs.commons.utils.LineHumpUtil;

public class Column {
    /** 数据库字段名称 **/
    private String columnName;

    /** 数据库字段类型 **/
    private String columnType;

    /** 数据库字段首字母小写且去掉下划线字符串 **/
    private String smallColumnName;

    /** 数据库字段首字母大写且去掉下划线字符串 **/
    private String bigColumnName;


    /** 数据库字段注释 **/
    private String columnComment;

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
        this.smallColumnName= LineHumpUtil.lineToHump(columnName);
        this.bigColumnName= LineHumpUtil.lineToBigHump(columnName);
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }


    public String getSmallColumnName() {
        return smallColumnName;
    }

    public void setSmallColumnName(String smallColumnName) {
        this.smallColumnName = smallColumnName;
    }

    public String getBigColumnName() {
        return bigColumnName;
    }

    public void setBigColumnName(String bigColumnName) {
        this.bigColumnName = bigColumnName;
    }
}
